package com.ccrfid.rmc6.repository.business.rollcall2;

import com.ccrfid.rmc6.entity.business.rollcall2.RcOrgGroupMemberEntity;
import org.springframework.data.repository.Repository;

import java.util.List;

public interface RcOrgGroupMemberRepository extends Repository<RcOrgGroupMemberEntity, Long> {

    RcOrgGroupMemberEntity getById(Long id);

    List<RcOrgGroupMemberEntity> getAllByGroupId(Long groupId);

    void deleteById(Long id);

    void deleteAllByGroupId(Long groupId);

    RcOrgGroupMemberEntity save(RcOrgGroupMemberEntity entity);

    boolean existsById(Long id);

    boolean existsByGroupId(Long gorupId);

    List<RcOrgGroupMemberEntity> getAllByOrgId(Long orgId);
}
